package com.dan.csmall.stock.webapi.quartz;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;

@Slf4j
public class QuartzJob implements Job {

    // 这个方法就是当前job要定时执行的任务代码
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        // 一个简单的任务演示,输出当前系统时间,使用sout或log皆可
        log.info("-------------------"+ LocalDateTime.now() +"--------------------");
        System.out.println("000000000000000000000000000");

    }
}
